@isTest
private class BudgetProductCatesControllerTest {
    static testMethod void testMethod1() {

    	BudgetProductCates__c bpc = new BudgetProductCates__c();
    	bpc.ProductLineFinance__c = '生化';
    	bpc.ProjectFinance__c = '迈克产品';
    	bpc.BudgetCode__c = 'M021';

    	insert bpc;

    	BudgetProductCatesController bpcc = new BudgetProductCatesController();
    	bpcc.getNCData();

    	List<BudgetProductCatesController.BudgetProductCatesBean> rl = new List<BudgetProductCatesController.BudgetProductCatesBean>();
    	rl.add(new BudgetProductCatesController.BudgetProductCatesBean(bpc));

    	bpcc.saveJson = EncodingUtil.urlEncode(JSON.serialize(rl), 'UTF-8');
    	bpcc.save();
        
    }
}